package concurrent.future;

public class Client {

    public Data request(final String query) {
        final FutureData data = new FutureData();
        new Thread(() -> {
           RealData realData = new RealData(query);
           data.setRealData(realData);
        }).start();
        return data;
    }

}
